package org.jeecg.modules.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.entity.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: db_file
 * @Author: jeecg-boot
 * @Date:   2024-06-21
 * @Version: V1.0
 */
@Data
@TableName("db_file")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="db_file对象", description="db_file")
public class DbFile extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**文件组id*/
	@Excel(name = "文件组id", width = 15)
    @ApiModelProperty(value = "文件组id")
    private String groupId;
	/**附件标题*/
	@Excel(name = "附件标题", width = 15)
    @ApiModelProperty(value = "附件标题")
    private String title;
	/**文件名*/
	@Excel(name = "文件名", width = 15)
    @ApiModelProperty(value = "文件名")
    private String fileName;
	/**文件扩展名*/
	@Excel(name = "文件扩展名", width = 15)
    @ApiModelProperty(value = "文件扩展名")
    private String fileNameExt;
	/**文件大小（字节）*/
	@Excel(name = "文件大小（字节）", width = 15)
    @ApiModelProperty(value = "文件大小（字节）")
    private Long fileSize;
	/**文件路径*/
	@Excel(name = "文件路径", width = 15)
    @ApiModelProperty(value = "文件路径")
    private String filePath;
	/**文件分类*/
	@Excel(name = "文件分类", width = 15)
    @ApiModelProperty(value = "文件分类")
    private String fileCatalog;

	/**删除时间*/
	@Excel(name = "删除时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "删除时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date deleteTime;
	/**删除人*/
	@Excel(name = "删除人", width = 15)
    @ApiModelProperty(value = "删除人")
    @TableField(fill = FieldFill.UPDATE)
    private String deleter;

}
